<?php

/**
 * 后端路由
 */
Route::get('/admin',function(){
    return redirect('admin/index/login');
});
//Route::get('/admin/index/login','Admin\IndexController@getLogin');
//Route::post('/admin/index/login','Admin\IndexController@postLogin');

Route::controller('/admin/index','Admin\IndexController');
//Route::controller('/admin/center','Admin\CenterController');

Route::group(['namespace'=>'Admin','prefix'=>'admin','middleware'=>'admin'],function(){
    Route::controller('center','CenterController');
    Route::controller('admin','AdminController');
    Route::controller('admingroup','AdminGroupController');
});


